<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>QCNSim: QcnSim/SimplexLink.cpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">QCNSim
   </div>
   <div id="projectbrief">Simulator for Quake-Catcher Network</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_d21be12960473ba5c51e5f9beea3525e.html">QcnSim</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">SimplexLink.cpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_simplex_link_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_simplex_link_8h.html">SimplexLink.h</a>&quot;</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;</div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="class_simplex_link.html#aa6c77538ee0e0454830a2ad56489a42d">   37</a></span>&#160;<a class="code" href="class_simplex_link.html#aa6c77538ee0e0454830a2ad56489a42d">SimplexLink::SimplexLink</a>(std::shared_ptr&lt;Node&gt; nodeA, std::shared_ptr&lt;Node&gt; nodeB, <span class="keywordtype">double</span> bandwidth, <span class="keywordtype">double</span> propagationDelay, <a class="code" href="class_simulator_globals.html">SimulatorGlobals</a> &amp;simulatorGlobals,</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;        <a class="code" href="class_scheduler.html">Scheduler</a> &amp;scheduler, <span class="keyword">const</span> std::string &amp;name) : <a class="code" href="class_link.html">Link</a>(nodeA, nodeB, bandwidth, propagationDelay, simulatorGlobals, scheduler, name) {</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;}</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="class_simplex_link.html#ac66df48ca3de080ea50af12f81c65555">   46</a></span>&#160;std::shared_ptr&lt;Node&gt; <a class="code" href="class_simplex_link.html#ac66df48ca3de080ea50af12f81c65555">SimplexLink::getSourceNode</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="class_link.html#af485c0065bf1fdc5c296b45f6ef96fd3">getNodeA</a>();</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;}</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;</div>
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="class_simplex_link.html#add00dade9033d18444217c1fea7b0d62">   55</a></span>&#160;std::shared_ptr&lt;Node&gt; <a class="code" href="class_simplex_link.html#add00dade9033d18444217c1fea7b0d62">SimplexLink::getDestinationNode</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="class_link.html#adb8020ddc851ceb0bf5dba01182d688c">getNodeB</a>();</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;}</div>
<div class="ttc" id="class_simplex_link_html_ac66df48ca3de080ea50af12f81c65555"><div class="ttname"><a href="class_simplex_link.html#ac66df48ca3de080ea50af12f81c65555">SimplexLink::getSourceNode</a></div><div class="ttdeci">std::shared_ptr&lt; Node &gt; getSourceNode() const </div><div class="ttdoc">Return pointer to source node (one side of link). </div><div class="ttdef"><b>Definition:</b> <a href="_simplex_link_8cpp_source.html#l00046">SimplexLink.cpp:46</a></div></div>
<div class="ttc" id="class_scheduler_html"><div class="ttname"><a href="class_scheduler.html">Scheduler</a></div><div class="ttdoc">Scheduler class. </div><div class="ttdef"><b>Definition:</b> <a href="_scheduler_8h_source.html#l00058">Scheduler.h:58</a></div></div>
<div class="ttc" id="_simplex_link_8h_html"><div class="ttname"><a href="_simplex_link_8h.html">SimplexLink.h</a></div></div>
<div class="ttc" id="class_link_html_af485c0065bf1fdc5c296b45f6ef96fd3"><div class="ttname"><a href="class_link.html#af485c0065bf1fdc5c296b45f6ef96fd3">Link::getNodeA</a></div><div class="ttdeci">virtual std::shared_ptr&lt; Node &gt; getNodeA() const </div><div class="ttdoc">Return pointer to nodeA (one side of link). </div><div class="ttdef"><b>Definition:</b> <a href="_link_8cpp_source.html#l00281">Link.cpp:281</a></div></div>
<div class="ttc" id="class_link_html_adb8020ddc851ceb0bf5dba01182d688c"><div class="ttname"><a href="class_link.html#adb8020ddc851ceb0bf5dba01182d688c">Link::getNodeB</a></div><div class="ttdeci">virtual std::shared_ptr&lt; Node &gt; getNodeB() const </div><div class="ttdoc">Return pointer to nodeB (another side of link). </div><div class="ttdef"><b>Definition:</b> <a href="_link_8cpp_source.html#l00290">Link.cpp:290</a></div></div>
<div class="ttc" id="class_simulator_globals_html"><div class="ttname"><a href="class_simulator_globals.html">SimulatorGlobals</a></div><div class="ttdoc">Simulator-scope variables and parameters. </div><div class="ttdef"><b>Definition:</b> <a href="_simulator_globals_8h_source.html#l00044">SimulatorGlobals.h:44</a></div></div>
<div class="ttc" id="class_simplex_link_html_aa6c77538ee0e0454830a2ad56489a42d"><div class="ttname"><a href="class_simplex_link.html#aa6c77538ee0e0454830a2ad56489a42d">SimplexLink::SimplexLink</a></div><div class="ttdeci">SimplexLink(std::shared_ptr&lt; Node &gt; nodeA, std::shared_ptr&lt; Node &gt; nodeB, double bandwidth, double propagationDelay, SimulatorGlobals &amp;simulatorGlobals, Scheduler &amp;scheduler, const std::string &amp;name=&quot;&quot;)</div><div class="ttdoc">Default constructor. </div><div class="ttdef"><b>Definition:</b> <a href="_simplex_link_8cpp_source.html#l00037">SimplexLink.cpp:37</a></div></div>
<div class="ttc" id="class_simplex_link_html_add00dade9033d18444217c1fea7b0d62"><div class="ttname"><a href="class_simplex_link.html#add00dade9033d18444217c1fea7b0d62">SimplexLink::getDestinationNode</a></div><div class="ttdeci">std::shared_ptr&lt; Node &gt; getDestinationNode() const </div><div class="ttdoc">Return pointer to destination (another side of link). </div><div class="ttdef"><b>Definition:</b> <a href="_simplex_link_8cpp_source.html#l00055">SimplexLink.cpp:55</a></div></div>
<div class="ttc" id="class_link_html"><div class="ttname"><a href="class_link.html">Link</a></div><div class="ttdoc">Link class. </div><div class="ttdef"><b>Definition:</b> <a href="_link_8h_source.html#l00064">Link.h:64</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Nov 14 2013 11:18:20 for QCNSim by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.5
</small></address>
</body>
</html>
